package com.htstar.ovms.device.api.entity;


import com.baomidou.mybatisplus.annotation.FieldFill;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.baomidou.mybatisplus.extension.activerecord.Model;
import io.swagger.annotations.Api;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import java.time.LocalDateTime;

@Data
@TableName("car_alarm_month_report")
@ApiModel(value = "警情报表按月统计")
public class CarAlarmMothReport extends Model<CarAlarmMothReport> {
    private static final long serialVersionUID = 1L;

    /**
     * 自增ID
     */
    @TableId
    @ApiModelProperty(value = "自增ID")
    private Integer id;
    /**
     * 用车人ID
     */
    @TableId
    @ApiModelProperty(value = "用车人ID")
    private Integer userId;

    /**
     * 企业ID
     */
    @TableId
    @ApiModelProperty(value = "企业ID")
    private Integer etpId;
    /**
     * 车牌号
     */
    @TableId
    @ApiModelProperty(value = "车牌号")
    private String licCode;

    /**
     * 设备序列号
     */
    @ApiModelProperty(value = "设备序列号")
    private String deviceSn;

    /**
     * 按月累积
     */
    @ApiModelProperty(value = "按月累积")
    private LocalDateTime monthShort;

    /**
     * 记录日
     */
    @ApiModelProperty(value = "记录时间")
    private LocalDateTime logTime;

    /**
     * 上线状态
     */
    @ApiModelProperty(value = "上线状态")
    private Integer online;
    /**
     * 超速次数
     */
    @ApiModelProperty(value = "超速次数")
    private Integer speeding;

    /**
     * 越界次数
     */
    @ApiModelProperty(value = "越界次数")
    private Integer border;

    /**
     * 创建时间
     */
    @TableField(fill = FieldFill.INSERT)
    @ApiModelProperty(value = "创建时间")
    private LocalDateTime createTime;

    /**
     * 更新时间
     */
    @TableField(fill = FieldFill.UPDATE)
    @ApiModelProperty(value = "更新时间")
    private LocalDateTime updateTime;

}
